﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true" Codebehind="ImportPreContract.aspx.cs"
    Inherits="PreContractWeb.Task.ImportPreContract" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="Microsoft.Web.UI.WebControls" TagPrefix="iewc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script language="javascript" type="text/javascript">
	  
   function ShowPage(id)
   {
    var arg = null;
  
     var top=(screen.height-600)/2;
     var left=(screen.width-800)/2;
     arg =  window.showModalDialog('EditPreContractInfo.aspx?id='+id,'','dialogHeight:600px;dialogWidth:800px;dialogTop:'+top+';dialogLeft:'+left+';center:Yes;scroll:yes;resizable:yes;status:no;');
 
    return false;
      
  }
    </script>

    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"  AsyncPostBackTimeout="600">
        </asp:ScriptManager>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="text-align: center">
                <table width="95%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="100%" height="100%" valign="middle" align="center">
                            <br />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="panel_header">
                                        <!--标题-->
                                        导入预合同信息(Import Pre-Contracts)
                                        <!--标题-->
                                    </td>
                                    <td width="5" rowspan="2" background="../Images/BG-Border-Right.png" valign="top">
                                        <img src="../Images/BG-Border-RT.png" border="0" /></td>
                                </tr>
                                <tr>
                                    <td class="panel_body">
                                        <!--Panel Body-->
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="text-align: center;">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="width: 672px; height: 100%">
                                                        <tr>
                                                            <td style="height: 20px; text-align: right;">
                                                                开始时间(Start Date):</td>
                                                            <td style="height: 20px; text-align: left;">
                                                                <asp:TextBox ID="txtStartDate" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                                    todatecontrol="ctl00_ContentPlaceHolder1_txtEndDate" allowempty="false" IconID="DateIcon01"></asp:TextBox><img
                                                                        id="DateIcon01" class="DateIcon" src="../Images/calendar_18.gif" /></td>
                                                            <td style="height: 20px">
                                                            </td>
                                                            <td style="height: 20px; text-align: right;">
                                                                结束时间(End Date):</td>
                                                            <td style="height: 20px; text-align: left;">
                                                                <asp:TextBox ID="txtEndDate" runat="server" CssClass="cssPopdate" checkmaster="checkDate"
                                                                    fromdatecontrol="ctl00_ContentPlaceHolder1_txtStartDate" allowempty="false" IconID="DateIcon02"></asp:TextBox><img
                                                                        id="DateIcon02" class="DateIcon" src="../Images/calendar_18.gif" /></td>
                                                            <td style="height: 20px; text-align: left">
                                                                <asp:Button ID="btnUpload" CssClass="bgButton" runat="server" Text="查询 (Search)"
                                                                    OnClick="btnImport_Click" confirm='您确认要查询预合同信息吗? \n\nAre you sure you want to search Pre-Contract Data?'
                                                                    autovisible="true" isvalidate="true" />
                                                            </td>
                                                        </tr>
                                                        <%--<tr>
                                                    <td style="text-align: right">
                                                        合同类型(Contract Type):</td>
                                                    <td style="text-align: left">
                                                        <asp:DropDownList ID="ddlContractType" runat="server">
                                                            <asp:ListItem>预合同</asp:ListItem>
                                                            <asp:ListItem>试用合同</asp:ListItem>
                                                            <asp:ListItem>借合同</asp:ListItem>
                                                        </asp:DropDownList></td>
                                                    <td>
                                                        &nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align: right">
                                                        是否锁定(Is Locked):</td>
                                                    <td style="text-align: left">
                                                        <asp:CheckBox ID="chkIsLocked" runat="server" /></td>
                                                </tr>--%>
                                                    </table>
                                                </td>
                                            </tr>
                                            <%--<tr>
                                        <td style="">
                                            <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td align="right" height="1" valign="middle" style="border-top: 1px; border-top-color: #BBBBBB;
                                                        border-top-style: dashed;">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100%">
                                            
                                        </td>
                                    </tr>--%>
                                        </table>
                                        <!---->
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5" background="../Images/BG-Border-Bottom.png" align="left">
                                        <img src="../Images/BG-Border-LB.png" border="0" /></td>
                                    <td width="5" height="5" background="../Images/BG-Border-RB.png">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td width="100%" height="100%" valign="middle" align="center">
                            <br />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left">
                                        <iewc:TabStrip ID="tabDocument" runat="server" SepDefaultStyle="border-bottom:solid 1px bottom;"
                                            TabSelectedStyle="border:solid 1px #BBBBBB;border-bottom:none;padding-left:20px;padding-right:20px; background-image:url(../images/BG-Button-09.png);"
                                            TabHoverStyle="background-image: url(../images/BG-Button-09.png);" TabDefaultStyle="border:solid 1px BBBBBB;padding-left:20px;padding-right:20px;background-image: url(../images/BG-Button-08.png);"
                                            TargetID="mpTabDocumentPages" Height="25" AutoPostBack="false">
                                            <iewc:Tab Text="需要确认的更新的预合同"></iewc:Tab>
                                            <iewc:TabSeparator />
                                            <iewc:Tab Text="需要确认的新预合同"></iewc:Tab>
                                            <iewc:TabSeparator />
                                            <iewc:Tab Text="已更新的预合同"></iewc:Tab>
                                            <iewc:TabSeparator DefaultStyle="width:100%;border-bottom-width:1px; border-bottom-color:#BBBBBB; border-bottom-style:solid;" />
                                        </iewc:TabStrip>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td width>
                                        <iewc:MultiPage ID="mpTabDocumentPages" runat="server" CssClass="mutil_panel_body"
                                            Width="100%">
                                            <iewc:PageView id="DocDetail" runat="server">
                                                <!--Panel Body-->
                                                <asp:Panel ID="pnlgv" runat="server" HorizontalAlign="Center" Width="100%" Height="100%">
                                                    <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left">
                                                                <b>&nbsp;总数(Total):<span id="totalSpan" runat="server"></span></b>
                                                            </td>
                                                            <td align="right" height="45">
                                                                <asp:Button ID="btnUpdate" runat="server" Text="更新 (Update)" CssClass="bgButton"
                                                                    confirm="您确定要更新选中的数据吗? \n\nAre you sure you want to update selected data?" autovisible="true"
                                                                    OnClick="btnUpload_Click"></asp:Button>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="right" height="10" valign="middle" style="border-top: 1px;
                                                                border-top-color: #BBBBBB; border-top-style: dashed;">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <!---->
                                                    <div style="overflow: auto;" id="divGrid">
                                                        <asp:GridView ID="gvMain" runat="server" AutoGenerateColumns="False" Width="4000px"
                                                            DataKeyNames="PreContractID" OnRowDataBound="gvMain_RowDataBound" OnRowCommand="gvMain_RowCommand">
                                                            <PagerSettings Visible="False"></PagerSettings>
                                                            <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                                            <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                                            <HeaderStyle CssClass="table_header"></HeaderStyle>
                                                            <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                                            <EmptyDataTemplate>
                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td class="panel_header">
                                                                            <!--标题-->
                                                                            没有数据(No Data).
                                                                            <!--标题-->
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </EmptyDataTemplate>
                                                            <Columns>
                                                                <asp:BoundField DataField="PreContractID" HeaderText="PreContractID" InsertVisible="False"
                                                                    ReadOnly="True" SortExpression="PreContractID">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="PreContractNo" HeaderText="PreContractNo" SortExpression="PreContractNo">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="PromisedDate" HeaderText="承诺转正时间" SortExpression="PromisedDate"
                                                                    DataFormatString="{0:yyyy-MM-dd}">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="CEWPromised" HeaderText="承诺转正金额" SortExpression="CEWPromised">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="OrionNo" HeaderText="Orion编号" SortExpression="OrionNo">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ACRNo" HeaderText="ACR编号" SortExpression="ACRNo">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="CustomerName" HeaderText="客户名称" SortExpression="CustomerName">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:TemplateField  ItemStyle-Width="40px">
                                                                    <HeaderTemplate>
                                                                        <input type="checkbox" id="chkAll" name="chkAll" onclick="javascript: return CheckAll(this.checked, this.id);" />
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chkSelect" runat="server" onClick="javascript: return CheckAll(this.checked, this.id);" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="更新">
                                                                    <HeaderTemplate>
                                                                        更新<br />
                                                                        Update
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:Button ID="pedit" runat="server" CssClass="bgButton" ToolTip="更新" Text="更新 (Update)"
                                                                            CommandName="Upd" confirm="您确定要更新这条数据吗? \n\nAre you sure you want to update current data?"
                                                                            CommandArgument='<%# Container.DataItemIndex %>' Width="70pt" />
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="预合同号" ItemStyle-Width="100px">
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <HeaderTemplate>
                                                                        预合同号<br />
                                                                        Pre-Contract No
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkPreContractNo" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="承诺转正时间" ItemStyle-Width="120px">
                                                                    <HeaderTemplate>
                                                                        承诺转正时间<br />
                                                                        Cygnus Date
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <asp:RadioButton ID="PromisedDate_Old" runat="server" GroupName="PromisedDate" Checked="true" />
                                                                            </tr>
                                                                            <tr>
                                                                                <asp:RadioButton ID="PromisedDate_New" runat="server" GroupName="PromisedDate" />
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="承诺转正金额" ItemStyle-Width="120px">
                                                                    <HeaderTemplate>
                                                                        承诺转正金额<br />
                                                                        Cygnus RMB
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <asp:RadioButton ID="CEWPromised_Old" runat="server" GroupName="CEWPromised" Checked="true" />
                                                                            </tr>
                                                                            <tr>
                                                                                <asp:RadioButton ID="CEWPromised_New" runat="server" GroupName="CEWPromised" />
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Orion编号" >
                                                                    <HeaderTemplate>
                                                                        Orion编号<br />
                                                                        Orion No
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <asp:RadioButton ID="OrionNo_Old" runat="server" GroupName="OrionNo" Checked="true" />
                                                                            </tr>
                                                                            <tr>
                                                                                <asp:RadioButton ID="OrionNo_New" runat="server" GroupName="OrionNo" />
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                    <ItemStyle VerticalAlign="Middle" Width="130px" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="ACR编号" ItemStyle-Width="100px">
                                                                    <HeaderTemplate>
                                                                        ACR编号<br />
                                                                        ACR No
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <asp:RadioButton ID="ACRNo_Old" runat="server" GroupName="ACRNo" Checked="true" />
                                                                            </tr>
                                                                            <tr>
                                                                                <asp:RadioButton ID="ACRNo_New" runat="server" GroupName="ACRNo" />
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="客户名称">
                                                                    <HeaderTemplate>
                                                                        客户名称<br />
                                                                        Customer Name
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False" Width="200px"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <table width="100%">
                                                                            <tr>
                                                                                <asp:RadioButton ID="CustomerName_Old" runat="server" GroupName="CustomerName" Checked="true" />
                                                                            </tr>
                                                                            <tr>
                                                                                <asp:RadioButton ID="CustomerName_New" runat="server" GroupName="CustomerName" />
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="PreContractStatus" HeaderText="状态&lt;br/&gt;Status" SortExpression="PreContractStatus"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="PreContractType" HeaderText="类型&lt;br/&gt;Category" SortExpression="PreContractStatus"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="ProductName" HeaderText="产品&lt;br/&gt;Product" SortExpression="ProductName"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="OrionPrice" HeaderText="预计转正RMB&lt;br/&gt;Orion RMB" SortExpression="OrionPrice"
                                                                    DataFormatString="{0:N2}" HtmlEncode="false" />
                                                                <asp:BoundField DataField="SalePrice" HeaderText="最终转正金额&lt;br/&gt;Sales RMB" SortExpression="SalePrice"
                                                                    DataFormatString="{0:N2}" HtmlEncode="false" />
                                                                <asp:BoundField DataField="SignDue" HeaderText="预计转正时间&lt;br/&gt;Orion Date" SortExpression="SignDue"
                                                                    DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" />
                                                                <asp:BoundField DataField="SignActual" HeaderText="最终转正时间&lt;br/&gt;Final Date" SortExpression="SignActual"
                                                                    DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" />
                                                                <asp:BoundField DataField="ContractName" HeaderText="合同名称&lt;br/&gt;Contract Name"
                                                                    SortExpression="ContractName" HtmlEncode="false" />
                                                                <asp:BoundField DataField="ERPReceived" HeaderText="订单确认时间&lt;br/&gt;ERP Accept"
                                                                    SortExpression="ERPReceived" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" />
                                                                <asp:CheckBoxField DataField="Delivered" HeaderText="发货状态&lt;br/&gt;Delivery" SortExpression="Delivered" />
                                                                <asp:BoundField DataField="CurrentSituation" HeaderText="销售反馈情况&lt;br/&gt;Sales Back"
                                                                    SortExpression="CurrentSituation" HtmlEncode="false" />
                                                                <asp:BoundField DataField="BlackDate" HeaderText="黑名单时间&lt;br/&gt;Black Date" SortExpression="BlackDate"
                                                                    DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" />
                                                                <asp:BoundField DataField="TradeMonth" HeaderText="财政月份&lt;br/&gt;TradeMonth" SortExpression="TradeMonth"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="ModifiedDate" HeaderText="修改时间&lt;br/&gt;Modified" SortExpression="ModifiedDate"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="ASBorLucent" HeaderText="ASB或Lucent&lt;br/&gt;ASB/Lucent"
                                                                    SortExpression="ASBorLucent" HtmlEncode="false" />
                                                                <asp:BoundField DataField="Applicant" HeaderText="申请人&lt;br/&gt;Apply Name" SortExpression="Applicant"
                                                                    HtmlEncode="false">
                                                                    <ItemStyle Width="100px" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ApplicantEmail" HeaderText="申请人Email&lt;br/&gt;Apply Mail"
                                                                    SortExpression="ApplicantEmail" HtmlEncode="false">
                                                                    <ItemStyle Width="200px" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Principal" HeaderText="负责人&lt;br/&gt;Project Name" SortExpression="Principal"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="PrincipalEmail" HeaderText="负责人Email&lt;br/&gt;Project Mail"
                                                                    SortExpression="PrincipalEmail" HtmlEncode="false" />
                                                                <asp:BoundField DataField="ProvinceCode" HeaderText="省&lt;br/&gt;Province" SortExpression="ProvinceCode"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="CATCode" HeaderText="大客户&lt;br/&gt;CAT" SortExpression="CATCode"
                                                                    HtmlEncode="false" />
                                                                <asp:BoundField DataField="BDCode" HeaderText="事业部&lt;br/&gt;PU" SortExpression="BDCode"
                                                                    HtmlEncode="false" />
                                                            </Columns>
                                                        </asp:GridView>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </asp:Panel>
                                            </iewc:PageView>
                                            
                                            <iewc:PageView id="DocNew" runat="server">
                                                <!--Panel Body-->
                                                <asp:Panel ID="Panel2" runat="server" HorizontalAlign="Center" Width="100%" Height="100%">
                                                    <table width="95%" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left">
                                                                <b>&nbsp;总数(Total):<span id="NewSpan" runat="server"></span></b>
                                                            </td>
                                                            <td align="right" height="45">
                                                                <asp:Button ID="btnNew" runat="server" Text="导入 (Import)" CssClass="bgButton" confirm="您确定要导入选中的数据吗? \n\nAre you sure you want to import selected data?"
                                                                    autovisible="true" OnClick="btnNew_Click"></asp:Button>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="right" height="10" valign="middle" style="border-top: 1px;
                                                                border-top-color: #BBBBBB; border-top-style: dashed;">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <div style="overflow: auto;" id="divGridThree">
                                                        <asp:GridView ID="gvNew" runat="server" Width="4000px" AutoGenerateColumns="False">
                                                            <PagerSettings Visible="False"></PagerSettings>
                                                            <Columns>
                                                                <asp:TemplateField ItemStyle-Width="40px">
                                                                    <HeaderTemplate>
                                                                        <input type="checkbox" id="chkNewAll" name="chkAll" onclick="javascript: return CheckNewAll(this.checked, this.id);" />
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chkNewSelect" runat="server" onClick="javascript: return CheckNewAll(this.checked, this.id);" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="PreContractNo" SortExpression="PreContractNo" HeaderText="预合同号&lt;br/&gt;PreContractNo" ItemStyle-Width="120px"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="PreContractStatus" SortExpression="PreContractStatus"
                                                                    ItemStyle-Width="80px" HeaderText="状态&lt;br/&gt;Status" HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="PreContractType" SortExpression="PreContractStatus" HeaderText="类型&lt;br/&gt;Category"
                                                                    ItemStyle-Width="80px" HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ProductName" SortExpression="ProductName" HeaderText="产品&lt;br/&gt;Product"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="PromisedDate" SortExpression="PromisedDate"
                                                                    ItemStyle-Width="100px" HeaderText="承诺转正时间&lt;br/&gt;Cygnus Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="CEWPromised" SortExpression="CEWPromised"
                                                                    ItemStyle-Width="80px" HeaderText="承诺转正金额&lt;br/&gt;Cygnus RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="OrionPrice" SortExpression="OrionPrice"
                                                                    ItemStyle-Width="80px" HeaderText="预计转正RMB&lt;br/&gt;Orion RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="SalePrice" SortExpression="SalePrice"
                                                                    ItemStyle-Width="80px" HeaderText="最终转正金额&lt;br/&gt;Sales RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="SignDue" SortExpression="SignDue"
                                                                    ItemStyle-Width="80px" HeaderText="预计转正时间&lt;br/&gt;Orion Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="SignActual" SortExpression="SignActual"
                                                                    ItemStyle-Width="80px" HeaderText="最终转正时间&lt;br/&gt;Final Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="CustomerName" HeaderText="客户名称&lt;br/&gt;Customer Name"
                                                                    SortExpression="CustomerName" HtmlEncode="False">
                                                                    <ItemStyle Width="190px" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ContractName" SortExpression="ContractName" HeaderText="合同名称&lt;br/&gt;Contract Name"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ERPReceived" SortExpression="ERPReceived" HeaderText="订单确认时间&lt;br/&gt;ERP Accept"
                                                                    HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="OrionNo" SortExpression="OrionNo" HeaderText="Orion编号&lt;br/&gt;Orion No#"
                                                                    HtmlEncode="false" ItemStyle-Width="100px"></asp:BoundField>
                                                                <asp:CheckBoxField DataField="Delivered" SortExpression="Delivered" HeaderText="发货状态&lt;br/&gt;Delivery"
                                                                    ItemStyle-Width="80px"></asp:CheckBoxField>
                                                                <asp:BoundField DataField="CurrentSituation" SortExpression="CurrentSituation" HeaderText="销售反馈情况&lt;br/&gt;Sales Back"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="BlackDate" SortExpression="BlackDate" HeaderText="黑名单时间&lt;br/&gt;Black Date"
                                                                    HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="TradeMonth" SortExpression="TradeMonth" HeaderText="财政月份&lt;br/&gt;TradeMonth"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ModifiedDate" SortExpression="ModifiedDate" HtmlEncode="false"
                                                                    ItemStyle-Width="80px" HeaderText="修改时间&lt;br/&gt;Modified"></asp:BoundField>
                                                                <asp:BoundField DataField="ACRNo" SortExpression="ACRNo" HeaderText="ACR编号&lt;br/&gt;ACR No"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ASBorLucentName" SortExpression="ASBorLucentName" HeaderText="ASB或Lucent&lt;br/&gt;ASB/Lucent"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="Applicant" SortExpression="Applicant" HeaderText="申请人&lt;br/&gt;Apply Name"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="ApplicantEmail" SortExpression="ApplicantEmail" HeaderText="申请人Email&lt;br/&gt;Apply Mail"
                                                                    HtmlEncode="false" ItemStyle-Width="120px"></asp:BoundField>
                                                                <asp:BoundField DataField="Principal" SortExpression="Principal" HeaderText="负责人&lt;br/&gt;Project Name"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="PrincipalEmail" SortExpression="PrincipalEmail" HeaderText="负责人Email&lt;br/&gt; Project Mail"
                                                                    HtmlEncode="false" ItemStyle-Width="120px"></asp:BoundField>
                                                                <asp:BoundField DataField="ProvinceCode" SortExpression="ProvinceCode" HeaderText="省&lt;br/&gt;Province"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="CATCode" SortExpression="CATCode" HeaderText="大客户&lt;br/&gt;CAT"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="BDCode" SortExpression="BDCode" HeaderText="事业部&lt;br/&gt;PU"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                            </Columns>
                                                            <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                                            <EmptyDataTemplate>
                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td class="panel_header">
                                                                            <!--标题-->
                                                                            没有数据(No Data).
                                                                            <!--标题-->
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </EmptyDataTemplate>
                                                            <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                                            <HeaderStyle CssClass="table_header"></HeaderStyle>
                                                            <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                                        </asp:GridView>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </asp:Panel>
                                                <!---->
                                            </iewc:PageView>
                                            
                                            <iewc:PageView id="DocProperty" runat="server">
                                                <!--Panel Body-->
                                                <asp:Panel ID="Panel1" runat="server" HorizontalAlign="left" Width="100%" Height="100%">
                                                    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;总数(Total):<span id="totalSpan_Updated" runat="server"></span></b>
                                                    <div style="overflow: auto;" id="divGridTwo">
                                                        <asp:GridView ID="gv_Updated" runat="server" Width="4000px" OnRowDataBound="gvUpdated_RowDataBound"
                                                            DataKeyNames="PreContractID" AutoGenerateColumns="False">
                                                            <PagerSettings Visible="False"></PagerSettings>
                                                            <Columns>
                                                                <asp:BoundField ReadOnly="True" DataField="PreContractID" InsertVisible="False" SortExpression="PreContractID"
                                                                    HeaderText="PreContractID">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="PreContractNo" SortExpression="PreContractNo" HeaderText="PreContractNo">
                                                                    <ItemStyle CssClass="hidden"></ItemStyle>
                                                                    <HeaderStyle CssClass="hidden" Wrap="False"></HeaderStyle>
                                                                    <FooterStyle CssClass="hidden"></FooterStyle>
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="预合同号" ItemStyle-Width="120px">
                                                                    <HeaderTemplate>
                                                                        预合同号<br />
                                                                        Pre-Contract No
                                                                    </HeaderTemplate>
                                                                    <HeaderStyle Wrap="False"></HeaderStyle>
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkPreContractNo" runat="server"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="PreContractStatus" SortExpression="PreContractStatus"
                                                                    ItemStyle-Width="80px" HeaderText="状态&lt;br/&gt;Status" HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="PreContractType" SortExpression="PreContractStatus" HeaderText="类型&lt;br/&gt;Category"
                                                                    ItemStyle-Width="80px" HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ProductName" SortExpression="ProductName" HeaderText="产品&lt;br/&gt;Product"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="PromisedDate" SortExpression="PromisedDate"
                                                                    ItemStyle-Width="100px" HeaderText="承诺转正时间&lt;br/&gt;Cygnus Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="CEWPromised" SortExpression="CEWPromised"
                                                                    ItemStyle-Width="80px" HeaderText="承诺转正金额&lt;br/&gt;Cygnus RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="OrionPrice" SortExpression="OrionPrice"
                                                                    ItemStyle-Width="80px" HeaderText="预计转正RMB&lt;br/&gt;Orion RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:N2}" DataField="SalePrice" SortExpression="SalePrice"
                                                                    ItemStyle-Width="80px" HeaderText="最终转正金额&lt;br/&gt;Sales RMB" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="SignDue" SortExpression="SignDue"
                                                                    ItemStyle-Width="80px" HeaderText="预计转正时间&lt;br/&gt;Orion Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataFormatString="{0:yyyy-MM-dd}" DataField="SignActual" SortExpression="SignActual"
                                                                    ItemStyle-Width="80px" HeaderText="最终转正时间&lt;br/&gt;Final Date" HtmlEncode="false">
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="CustomerName" HeaderText="客户名称&lt;br/&gt;Customer Name"
                                                                    SortExpression="CustomerName" HtmlEncode="False">
                                                                    <ItemStyle Width="190px" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="ContractName" SortExpression="ContractName" HeaderText="合同名称&lt;br/&gt;Contract Name"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ERPReceived" SortExpression="ERPReceived" HeaderText="订单确认时间&lt;br/&gt;ERP Accept"
                                                                    HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="OrionNo" SortExpression="OrionNo" HeaderText="Orion编号&lt;br/&gt;Orion No#"
                                                                    HtmlEncode="false" ItemStyle-Width="100px"></asp:BoundField>
                                                                <asp:CheckBoxField DataField="Delivered" SortExpression="Delivered" HeaderText="发货状态&lt;br/&gt;Delivery"
                                                                    ItemStyle-Width="80px"></asp:CheckBoxField>
                                                                <asp:BoundField DataField="CurrentSituation" SortExpression="CurrentSituation" HeaderText="销售反馈情况&lt;br/&gt;Sales Back"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="BlackDate" SortExpression="BlackDate" HeaderText="黑名单时间&lt;br/&gt;Black Date"
                                                                    HtmlEncode="false" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="TradeMonth" SortExpression="TradeMonth" HeaderText="财政月份&lt;br/&gt;TradeMonth"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ModifiedDate" SortExpression="ModifiedDate" HtmlEncode="false"
                                                                    ItemStyle-Width="80px" HeaderText="修改时间&lt;br/&gt;Modified"></asp:BoundField>
                                                                <asp:BoundField DataField="ACRNo" SortExpression="ACRNo" HeaderText="ACR编号&lt;br/&gt;ACR No"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="ASBorLucentName" SortExpression="ASBorLucentName" HeaderText="ASB或Lucent&lt;br/&gt;ASB/Lucent"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="Applicant" SortExpression="Applicant" HeaderText="申请人&lt;br/&gt;Apply Name"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="ApplicantEmail" SortExpression="ApplicantEmail" HeaderText="申请人Email&lt;br/&gt;Apply Mail"
                                                                    HtmlEncode="false" ItemStyle-Width="120px"></asp:BoundField>
                                                                <asp:BoundField DataField="Principal" SortExpression="Principal" HeaderText="负责人&lt;br/&gt;Project Name"
                                                                    HtmlEncode="false" ItemStyle-Width="80px"></asp:BoundField>
                                                                <asp:BoundField DataField="PrincipalEmail" SortExpression="PrincipalEmail" HeaderText="负责人Email&lt;br/&gt; Project Mail"
                                                                    HtmlEncode="false" ItemStyle-Width="120px"></asp:BoundField>
                                                                <asp:BoundField DataField="ProvinceCode" SortExpression="ProvinceCode" HeaderText="省&lt;br/&gt;Province"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="CATCode" SortExpression="CATCode" HeaderText="大客户&lt;br/&gt;CAT"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                                <asp:BoundField DataField="BDCode" SortExpression="BDCode" HeaderText="事业部&lt;br/&gt;PU"
                                                                    HtmlEncode="false"></asp:BoundField>
                                                            </Columns>
                                                            <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                                            <EmptyDataTemplate>
                                                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td class="panel_header">
                                                                            <!--标题-->
                                                                            没有数据(No Data).
                                                                            <!--标题-->
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </EmptyDataTemplate>
                                                            <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                                            <HeaderStyle CssClass="table_header"></HeaderStyle>
                                                            <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                                        </asp:GridView>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </asp:Panel>
                                                <!---->
                                            </iewc:PageView>
                                        </iewc:MultiPage>
                                    </td>
                                    <td width="5" background="../Images/BG-Border-Right.png" style="border-left-width: 1px;
                                        border-left-color: #BBBBBB; border-left-style: solid;" valign="top">
                                        <img src="../Images/BG-Border-RT.png" border="0" /></td>
                                </tr>
                                <tr>
                                    <td height="5" background="../Images/BG-Border-Bottom.png" align="left">
                                        <img src="../Images/BG-Border-LB.png" border="0" /></td>
                                    <td width="5" height="5" background="../Images/BG-Border-RB.png">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <div style="position: absolute; left: 40%; top: 40%; overflow: hidden; background-color: white;
                filter: alpha(opacity=50); opacity: 0.5; -moz-opacity: 0.5;">
                <table class="table_ajax">
                    <tr>
                        <td style="width: 35px">
                            <img src="../Images/roller.gif" /></td>
                        <td style="width: 100px">
                            Processing...</td>
                    </tr>
                </table>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    <script language="javascript">
        

        ResizeDivForScroll('divGridThree','');
        ResizeDivForScroll('divGrid','');
        ResizeDivForScroll('divGridTwo');
        
        
    </script>

</asp:Content>
